   $('.btn-facebook').on('click', function(e){
                window.location.href = "facebook/login";
            });

            $('.btn-google').on('click', function(e){
                window.location.href = "google/login";
            });

            $('.btn-github').on('click', function(e){
                window.location.href = "github/login";
            });

            // TODO HANDLE IN TEMPALTE...
			var config = {{ index . }};
            if (!config.oauth2.facebook) {
                $('.btn