Feat ie8 support

fix window.location issues