Ability to reset back to custom scope after sequence

Since javascript keeps variables outside function scope, 
we can just keep track of the original scope name and
set it back after we finish our sequence.