implemented fittext.js