adds ajax calls to blog posts