fix for #122 jshint warnings