get embed code now uses window.location