Minimal utility methods for node and the browser