Change TorqueRenderer.getMetadata to use a callback