#0 | +Balvinder | Creating class for losses and adjustment in javascript. Refactored for the same.