Fixed issues with History.js

Fixed following issues with history.js

1. Safari issue with private browsing mode
2. Handling special character issue in URL params