Adding display_post function in home.js