Fixed Bugs in IE8 caused by using document.head and trim()
Merge pull request #10 from crtvhd/IE8-Fix

Fixed Bugs in IE8 caused by using document.head and trim()