Fix JSHINT bad linebreaking errors
Fix indentation errors
missing open brace
remove switch statement
fix jslint errors
Merge pull request #2660 from adobe/jasonsanjose/jshint

Fix JSHINT errors