Changes Javascript file to make the lines update for multifile cases when changing the axis