Scoped the script context from the Dispatcher UI.

This is necessary since the LocalDispatcher does its work using the Context.current()