Updating JavaScript and README.md