change isAdmin -> admin in js model