Fix for IE9 to support history location