Deleted definitions to allow for a few branches

Removed definition for inNewThread
Reverted to stub for runJS
Implemented js2snap