fix the html encoding issues

I personally would have moved the decoding into a map of its own after the success and then map the result of that decode into the favourite munging function that is currently used in the map. 

Mixing concerns now of decoding the result of the get, and the actual business of working out which scripts are updated.

I think.