Fixed a few jscs issues and updated rules to new format.