clean-up: fixing most jslint errors, authentication.js is the last offender