simple HTTPS server with basic auth
onmouseup and onkeyup event handling