Fix tests in IE <= 9
Merge pull request #1041 from ractivejs/IE9

Fix tests failing in IE 9