This thing
function(Engine, $, undefined) { ... }
actually a closure. Thus, everything is defined inside this function, available only in this area. When you do
Engine.Init = ...
You create a property attached to an Engine object. In your case, the engine is a global object, which means that you have access to it through the console.
source share