javascript limit validation