Fixed jshint errors (except one about redefining Set)