Moved callback function and getBlogInfo to template.js