Fix JSCS issues and make everything more readable and consistent.