Playing around with javascript functional programming and added the skeleton of a client engine in doppelclient.js. It still does not display any graphics, but it can communicate with the server