refs #901 code cleanup due to jslint issues