Fixed bad use of jQuery.

This should fix issue #6.