added js file and updated readme.md