Feat ie8 support

window.location issues