Fix index.js for JSLint and add in some tests