README file update and example js fixed