Taking suggestions/code from Roman/John.

* Removing class/id on script element due to this failing HTML validators (which has been an issue for our clients in the past).
* Taking John's cleaner detection logic for tag.
Tests, you've saved me again! Fixing regression with capturing -> Mobify.capturing switch