Fixed jslint and a typo in Permission model