Updates for query, and fixed bug in BASE.js for ie 6-8.