fix js clear problem