Update calculate-size.js

Fix bug with bold text