Refresh indexes when removing special funds.

Also brought in lodash as a JS dependency.