Report = init: -> return unless /report/.test(location.search) and not d.cookie.contains 'pass_enabled=1' $.asap (-> $.id 'recaptcha_response_field'), Report.ready ready: -> field = $.id 'recaptcha_response_field' $.on field, 'keydown', (e) -> $.globalEval 'Recaptcha.reload("t")' if e.keyCode is 8 and not field.value $.on $('form'), 'submit', (e) -> e.preventDefault() response = field.value.trim() field.value = "#{response} #{response}" unless /\s/.test response @submit()