fixed IE<9 bug

[].slice does not work on host objects, such as nodeList objects, in
any version of IE less than 9.  Instead, a function is called to
iterate through each item in the nodeList and push it to a new array.