setup jshint rules, setting up constructor