New File for JS History Function Example

to keep track of JS functions called and calling them by pressing back
button, just like browser back button loads previous page, this back
button will call the previously called function