Change code for history plugin working proper in IE9