Handle cross domain requests for running code, debug statements, wait condition after execution