Fix incorrect use of typeof in send_form.js