added window.location.origin support to IE
potential Facebook sharing fix