I have installed the AMP Plugin Manager, and one by one turned off plugins to see which was prompting the errors. It turns out manu-image plugin and w3 total cache were the plugins causing the most errors.
I still have the two js references, but I don’t know where they came from…