Added common global objects to JavaScript, removed one from CoffeeScript. Should fix #381.