Keep track of successful JS statements and execute them to preserve built-up context