Update query.js

Added some ie8 compatibility on "getElementsByClassName"