code: function() {
  		if (!ready) {
  			ready = true;
  			//Call the stack of onload functions in given context or window object
  			for (var i=0, len=stack.length; i < len; i++) {
  				stack[i][0].call(stack[i][1]);	
  			}
  			//Clean up after the DOM is ready
  			if (document.removeEventListener) {
  				document.removeEventListener("DOMContentLoaded", onStateChange, false);
  			}
  			//Clear the interval	
  			clearInterval(timer);
  			//Null the timer and event handlers to release memory
  			document.onreadystatechange = window.onload = timer = null;
  		}
  	}
docs: Fires all the functions and cleans up memory