add jscs and cleanup formatting