Added the javascript to generate blogs