   )
 
 xmleditor = ace.edit "xmleditor"
-xmleditor.setTheme  "ace/theme/monokai"
-xmleditor.getSession().setMode  "ace/mode/xml"
+xmleditor.setTheme "ace/theme/monokai"
+xmleditor.getSession().setMode "ace/mode/xml"
 xmleditor.getSession().setValue $("xml").val()
 xmleditor.getSession().on(
   'change'

        transform
        doneTypingInterval
      )
  )

xsleditor = ace.edit "xsleditor"
xsleditor.setTheme  "ace/theme/monokai"
xsleditor.getSession().setMode  "ace/mode/xml"
xsleditor.getSession().setValue $("xsl").val()
xsleditor.getSession().on(
  'change'

  jsRoutes.controllers.Application.save().ajax(
    data: $("#files").serialize()
    success: (data) ->
      if data[1] == 0
        window.history.pushState("", "XSL Transform", "/" + data[0]);
      else
        window.history.pushState("", "XSL Transform", "/" + data[0] + "/" + data[1]);
      $("#id_slug").val(data[0]);
      $("#save").find("span").html("Update");
    error: (err) ->
      console.log err
      $("#alert").find("h4").html("Save oeps");
