cleaned up some jslint warnings