update file js