calculator.js works locally but not online