Fix code according to jshint notation