fix js error in trial detail page