added jscs and fixed coding style errors