addRole javascript