fix recent jshint warnings
Merge pull request #602 from mucaho/jshint_rotation_twoway

fix recent jshint warnings