Add check for history.pushState
Fix bad context transfert on IE9