         @submit = @submit.bind(this)
 
     setField: (field, value) ->
-        console.log field, value
         newState = {@state...}
         if field == "file"
             newState.wasFile = true

                submit: undefined

    submit: (event) ->
        console.log @state
        event.preventDefault()
        newState = {
            @state...

            fileName = document.getElementById("file").files[0]
            fileText = await PromiseFileReader.readAsArrayBuffer(fileName)
            fileText = Array.from(new Uint8Array(fileText))
            languageName = undefined
            for lang in LANGUAGES
                if ""+@state.lang_id == ""+lang[0]
                    languageName = lang[1]
            dataToSend =
