Used JSCS and fixed violations
Merge pull request #126 from mrjoelkemp/jscs

Used JSCS and fixed violations