Update javascript part