handling history with ajax
clean up
Merge pull request #15 from klinec/master

handling history with ajax