Fixes jQuery and Javascrpt, issue #50

Fixes #50