Updates JS file