Convert pushstate to js

Can there be a space after `(` to match the end?