move makeDomArray to prototype