add js to compare text width and div width