Updated property check in udefine.globals
Updated JS