removed all previous example code and wrote my own. now am getting article objects in console.