trimming values in the js head

This was causing js errors in the inlined js head.
```
"webTitle":"Tory summer party drew super-rich supporters with total wealth of £11bn\r\n\r\n\r\n"
```