fix nodelint errors
fix jshint errors