working on JS front end