tries to update javascript code ticks