Update calculator.js

Not working on Firefox : http://stackoverflow.com/questions/1359469/innertext-works-in-ie-but-not-in-firefox