Fix use of jQuery to allow for the 1.x branch

This fixes #2 and was suggested by @paulmillr.