Pass in Q to requireQ

Q isn't in the global scope, so it needs to be passed in to requireQ
directly