Allow me to introduce you to the defer module

A module which provides a requestAnimation frame shim and a setImmediate shim.
Also updated emitter.js to use defer, so that events are emitter sooner, hopefully.