minor changes to some javascript stuff to include welfare deduction