Update calculator.js

minor updates, terminating statements, etc.