jqLite polyfill refactor