Added optional callback when maxLength reached, with appropriate example