Node.js prototype extensions for Array when using that data asynchronously