Manage appointments

Unused variables. Also, JS in view templates should be minimal.