Fixing some breaking changes from the 3.1 repo

Removed inline script block and used the SS standard way of attaching
JSON to a data expando.