Replacing content above JS references.