common.js: added isNumber()
discount.js: validateDiscount() - handles bad input to avoid error
function