Fixed lower than IE9 issues when injecting inline javascript

Due to the fact that appendChild() is not supported for script tags for IE lower than IE9 we should use scriptNode.text syntax here.