IE8 Javascript compatibility
Merge pull request #84 from afoster/master

IE8 Javascript compatibility