adding jscs and fixing style errors