add jslint annotations, convert tabs to spaces, fix minor lint issues