function $(selector) { var o=Object.create($.prototype), *!*queryResult = document.querySelectorAll(selector);*/!* for (var i = 0; i < queryResult.length; i++) { o[i] = queryResult[i]; } o.length = queryResult.length; return o }