Adds jslint and fixes all warnings so far