nit: we use seperate var declarations in the current codebase (the only exception is inside level.js), so can we revert to the existing style, cheers