Bug fixes and integrated querySelector and textContent.

This is my contribution to the project. I have only tested it with ThreeJS collada loader demo (and still there is one thing to correct in the CocoonJS side to make this demo to work as CocoonJS is returning the incorrect responseXML for the XHR request).