v. 2.0.2 - fix minor bugs, refactor the script

- fix history bug
- remove auto redirect to home on loadFail event for better
customization (you can catch loadFail event then redirect to your
desired page manually)
- change unnecessory document.querySelector() to
document.getElementById() for better performance