js check to see if info cut off