Fix IE8 JS rendering (#415)