application page popup javascript error