Add shim for setTimeout and clearTimeout