Added all the necessary files. Now a new js file js/deductionCommon
handles all the deductions