modify frontend to add javascripts to call the rest api