Update javascript