fixed JS for group