fixed some niceness things with jslint