fix js error, make nice clear log button