index: don't use `return` at the top level

While it works with Node.js/component, it's not technically
a valid JavaScript program and thus makes some parsers like
esprima trip up when trying to process code like this.
Release 0.0.3