Added missing semicolons
Added expr: true to suppress jshint warnings in tests
Renamed local splitPermissions variable