Popups are loaded from a template and directive
Work of doing the AJAX call moved to popup directive.
Console.log removed