Add a dependency of jQuery on the javascript. Fixes #2