Problems with data from content scripts

There seems to be a problem with some data not being available in templates. Specifically, data extracted from within content scripts do not appear to be getting derived correctly (e.g. `selectionHTML`.

I've fixed some issues but more remain.

This is likely related to the recent changes implemented by #160.