Fixed jshint errors and added test suggest by AndyP
Merge pull request #41 from awashbrook/master

Fixed jshint errors and added test suggest by AndyP