Remove redundant code from index.js (same thing in bin/node-promised)