Make conda-js work better in mixed Node/browser environments