javascript get methods of element code example Example: javascript check object methods Object.getOwnPropertyNames()