Update index.js

Pull Request #9