working text limit alert, how to get rid of undefined?!