A smart JavaScript module to measure text in pixels, choose the best fit font size or trim a sentence to fit a container