Unify index.js and main.js, calling it main.js

The reason for this is that browserify will read the browser field
from package.json while r.js will assume "main.js" as the default.

This also reduces potential confusion with a typical index.js that
npm would treat as the main entry point.