Fix IE8 bug.
Merge pull request #5 from caillou/master

Fix JS error in IE8