Update javascript for group upload