Fix duplicate DOM on popstate. Fixes #20.