js bug fix expenses ajax