Created discount.js and tested file.