fix js problem