Fix user rating and deleting post - AJAX