Started working on the javascript