Javascript Sandbox Architecture as proposed by Nicholas C. Zakas