fixed jshint errors and tests
Merge remote-tracking branch 'origin/master'