expose load() in the global context

and return the newly created scriptentity if success , null otherwise