Update index.js

This should close #5