js cleanup, refactor getUrl, fix search btn
Fix phantom page in history
Merge pull request #306 from bhuber/topic/js-cleanup

Topic/js cleanup