Fix tests

This pull request updates the test command to correctly precompile CoffeeScript files before testing. It also makes sure jQuery has a `window` object.