Fixed IE9 compatibility issues.
Merge pull request #1 from Ameriks/master

Fixed IE9 compatibility issues.