Hack to initialize angular-ui templates