add todo in score system and clean up
refactor and simplify browser ui javascript