Update frontend.js

rated