update readme
refactored js