Fix Javascript ReferenceError by using target=_blank instead of popup() in a link