added jslint comments and remove unused files