linted code cleanup

Forever adhering to the strict standards of jslint