code refactors, clean page url for pushstate, remove unused libraries