[#1462] Added in String.trim shim for IE8, fails without this.

There is another failure in IE8, with "head.removeChild( script );" Looking to resolve this shortly.