Added some more helper functions to utils.js. Added pollution tests to simulate running plyfe-widget.js in a hostile webpage.