Instance resolver for nodejs