Update index.js
Update index.js

This fixes #180
Merge pull request #181 from timbur/master

Get spark by id