fix js popup