Moved angular reference into head to prevent the user from seeing uncompiled templates