I have set up a periodically call remote on a page. To get it to stop
calling I have made it reliant on a hidden element being populated
with some value, this is all working.
But I want to actually delete the script from the DOM based on a
decision from the server.
What would be the best way to go about doing this?