Execute Javascript in window as well fix