Ability to reset back to custom scope

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.