fix js warning