updated readme.md and small update in js