Added front-end code from previous attempt with Node.js