little changes according to jslint, added jslint directive
changed license to MIT