Gets rid of javascript bug on IE8. Fixes #9