Adding unit test and jshint