added js for rendering all posts as <div>s