Browser Issues

document.getElementsByClassname and nextElementSibling are not supported
under IE9, so I have changed it to document.querySelectorAll and have
written a function which runs when detects that nextElementSibling is
not supported.