Create an `index.js` and a unit test.

Closes #3.