fix js winpopup