Refactoring code. Added user_id to comments, added AJAX.