added jscs check, and fixed codestyle