Made Q more independent of jQuery