Add rudimentary queue methods to any JavaScript object