Listen for the 'historyChange' event to re-apply drones.
Also process script types with "html" in the type.