fix index.js to work with harmony transform