call parseInt() on the tip amount before putting it into the tip object to prevent some browsers from interpreting it as a String