modifications to pass jshint