jslint formatting and fixes