Fixing issue with CKFinder perm plugin js