Move all vars to index.js and source.
Update README for new setup.