function initPage() {
        articleContainer.empty();
        $.get("/api/headlines?saved=true")
            .then(function (data) {
                if (data && data.length) {
                    renderArticles(data);
                } else {
                    renderEmpty();
                }
            });
    }
// A function for initially running the page
A function for initially running the page
A function for initially running the page
function initPage() {
        articleContainer.empty();
        $.get("/api/headlines?saved=true")
            .then(function (data) {
                if (data && data.length) {
                    renderArticles(data);
                } else {
                    renderEmpty();
                }
            });
    }
function initPage ( ) { articleContainer . empty ( ) ; $ . get ( "/api/headlines?saved=true" ) . then ( function ( data ) { if ( data && data . length ) { renderArticles ( data ) ; } else { renderEmpty ( ) ; } } ) ; }
A function for initially running the page
A function for initially running the page