clean up edit.html and style.css
first commit to panyf branch
update for var scope problems
update for var scope problems
after merge