Minor correction to README text
Adding comments throughout JavaScript code