Make javascript more modular, call method in index.html.
Update README file.