switch over to jslint, other small mods