Prepare client code for javascript group.