         <option value="UG">Uganda</option>
         <option value="UA">Ukraine</option>
         <option value="AE">United Arab Emirates</option>
-        <option value="GB">United Kingdom</option>    
+        <option value="GB">United Kingdom</option>
         <option value="UY">Uruguay</option>
         <option value="UZ">Uzbekistan</option>
         <option value="VU">Vanuatu</option>



setRequired = ->
    $('#user-registration-form :input').each () ->        
        if not $(this).is(':checkbox')
            if not $(this).is(':radio')
                $(this).prop('required', $(this).is(":visible"))        

    
checkEligibility = ->
    is_us = $("#country-select").val() in ["US", ""]
    is_k12 = $("#background-select").val() in ["student_el", "student_ms", "student_hs", "student_home"]
    is_student = $("#background-select").val() in ["student_el", "student_ms", "student_hs", "student_home", "student_undergrad", "student_grad"]
    
    if not (is_us and is_k12)
        $("#eligibility-warning").show()
        $("#adviser-group").hide()
    else
        $("#eligibility-warning").hide()
        $("#adviser-group").show()
    
    if is_student
        $("#school-group").show()
        $("#button-adviser").hide()

                ga('send', 'event', 'Registration', 'Switch', 'Teacher')
                setRequired()


  $("#country-select").on "change", checkEligibility
  $("#background-select").on "change", checkEligibility

  $("#country-select").html('
        <option value="">Country...</option>
        <option value="US">United States of America</option>
