Add missing Javascript code in the choice validator doc