enabled script execution from outside the directory
checking if backend exists before accessing outer iframe