added jslint comment and a missing closing bracket