Node.js resolve algorithm with browser field support