fix popup bug, and refactoring
update popup and resanchor js file document
Merge pull request #3 from caramelopardalis/master

fix popup bug, and update document