updating Javascript for group show page