Moving to code to membership .js new plan: write directive for group membership