Abstracted stage and level into separate object literals
Replaced namespaces with 'this'