js fix for leave balances