#745468 by alevine and Scott Reynolds: Make ajax better able to know what .js/.css was already on the page.