Update javascript file