updating front-end jquery for posts