Error stack trace indicates that incorrect parameters have been passed to pq.grid constructor somewhere in your code.
Please check all the code instances where you have used pq.grid constructor.
pq.grid(".selector", obj ); //where obj is initialization object.
If you are unable to figure out, then please share a test case wherein the error can be reproduced.