Update calculate-size.js

Fix bug with bold text
Merge pull request #1 from atipunov/patch-1

Update calculate-size.js