The API for node.js & browser should be the same
Use unified API