fixed AJAX for new posts dynamically generated and stored into database