check jshint against es3; fix jshint errors