checkCode.js

This is what will evaluate and assign your discount.