fix jshint errors for v2.1