add support for IE 8 and test against 9

Some array functions were missing for IE 8 and it threw an error
when the example tried to place a pre inside a paragraph.