removed renderReplyButtons from JS
replaced stray debug code