added js  changing css if lehgth is greater