Fixing jshint errors
Fixing #229