refactoring js to use google api feed methods