Update javascript timing