made files pass jslint, set replaced tabs with spaces (tabs and spaces where mixed before), set indentation to 2 (as per rdahl convention)