Get rid of global stdError variable in index.js