Updated the comments in frontend.js