Remove browser-oriented code that throws in node.