adding comments using ajax with two ways