Possible solution to IE8 problem

Function to convert querySelector object to array.