Add group javascript