adding some comments to JS
updating the readme