gnone changed to ngroup
added jquery onload snippet