Cleaned up the code.
Update index.js
Merge pull request #342 from kkoopa/cleanup

Cleaned up the code.