change JS tags so that they are not loaded at each page but only on the edit page