Implement popup, handle error.

(and add meta element for viewport scale)