Update calc.js

Replaced my code with Jordan's so it's easier to follow along during class.