update README.md and clean js code