modified javascript in topics/show view