Added comments to JS. Minor changes to index and Readme.