Updated .gitignore
Removed unnecessary comments in indexmanager.js.
Added basic mocha tests.