Moved the client JavaScript out of the client HTML file.