Cleaning up of Discussion view and javascript