javascript to view blogs