Add jquery code to make gallery groups work.