Update leave.js