added jscs and made the code compliant
added jshint and made the code compliant