changed the way nodeList gets converted to array by looping through the node list rather than calling Array slice from the context of the nodeList which does not work in internet Explorer 7.
Also made it so setActivePage is not invoked if the pageNum isNaN.
Also made it so that we aren't using sizzle style query selector, but rather using document.getElementById not as flexible but more cross browser friendly, and framework independent.