If I'm not mistaken, at this point, you can pass app.init as argument instead of the anonymous function.