update Readme, clean up index.js