Add JS for file editing