corrected math on javascript
changes made to .html on website