move page elements from index.html to client.js