Discounts Completed

Discounts js code completed and tested with different values.