made jshint compiant