move angular init to block that's guaranteed on top