Add onbeforeunload handler
Changed badge
Update README.md
Update README.md
TODO: done - onbeforeunload