Fixes #137.
Need to run tests with jquery and without somehow.