Fixed index.js to work with 0.9.3