front-end source code for zapo.tc