Convert pushstate to js
Code review
Merge pull request #791 from lonelyplanet/jesus/convert_pushstate

Convert pushstate to js