fixing JS includes calls in the html doc