Make index.js a 'proper' index file.
Update example.