add character number checking with jQuery