They could have fixed this in a heartbeat by simply having pagerank penalize pages for adding external JS assets. No AMP needed; better experience all around, and with less effort.
And if you think a whitelist would work, all it takes is one look at how rapidly new JS libraries come and go to render that unfeasible