Make the demo compatible with IE 8
Make the demo compatible with IE 8

* Insert <link> elements into DOM before setting 'href', as otherwise
  the stylesheets are not loaded.
* Only pass real Arrays to Function#apply, not array-like objects, to
  avoid exceptions.

Change-Id: Idd5c829ac1d0786d9e64637771ea7a0a5fc9cfe1

wikimedia/oojs-ui,wikimedia/oojs-ui,wikimedia/oojs-ui,wikimedia/oojs-ui