Fix query building UI in IE8

IE8 is trying to use its native (non-existent) array methods.

Fixes #163.