Fix wrong acl and clean up js