Fixed some errors reported by jshint
Changed node.js version (related to travis-ci)