jshint optimizations
ref #25