refactor README,
slight JavaScript refactor
minor README edit