     @element_id = @el.attr('id')
     @url = @el.data('url')
     @render()
+    @mathjax_preprocessor = false
 
   $: (selector) ->
     $(selector, @el)

  inputtypeSetupMethods:

    textinputdynamath: (element) =>
      @mathjax_preprocessor = window.mathjax_preprocessor 

    javascriptinput: (element) =>



    if jax = MathJax.Hub.getAllJax(target)[0]
      eqn = $(element).val()
      if @mathjax_preprocessor
        eqn = @mathjax_preprocessor(eqn)

      MathJax.Hub.Queue ['Text', jax, eqn],
        [@updateMathML, jax, element]

  updateMathML: (jax, element) =>
    try
      $("##{element.id}_dynamath").val(jax.root.toMathML '')
