JavaScript unit tests, templating; reply cancellation; voting feedback

@cookjw