Fixes errors and supports older IE

``#appendData`` gives an error ``undefined is not a function`` and doesn't load the script. 

This new approach creates the IE conditional comment in memory and only builds / embeds the shim if the browser lets us select nodes inside the conditional.