added js front end