Update frontend.js

Updating /leave