Added base client JavaScript logic and client HTML