jshint suggestions
perm fix