roles works js