made jshint compliant