Refactor js in blog, corporate home page, and news site