updating javascript file