Updated JS for navigation arrows to fix bug when viewing in IE8

Changed JS to include closing tags due to IE8 not creating the elements at all.

NB. This may need fixing on the timer part too.