Started working on the javascript for the front end