#243: form_validator.js, add document ready wrapper