Delinted using jshint

Now passes jshint test.