Fixed JSHint issues with code code will now produce no warnings in jshint.
Merge pull request #29 from vortex-5/master

Fixed JSHint issues with code.