Code cleanup in blog.js