Logic for commenting (returns json)