Convert pushstate to js

Can there be a matching space before the closing `)`?