addReply javascript