Fix for jQuery
Merge pull request #1 from charlieirish/master

Implemented jQuery doc ready and fixed undefined variables