Add queueing methods  to any JavaScript object