JS function to provide functionality resize font by definet width.