frontend and js