Removed JQuery dependency. Fixes 4622