                    end
 
 
-          result = convert_to_code(module)
+          result = javascript_ast_to_code(module)
 
           send parent, { self, result }
         end

    js_ast
  end

  defp operating_path do
    try do
      Mix.Project.build_path <> "/lib/elixir_script/priv"

  defp create_code(compiler_opts) do

    parent = self
    state = ElixirScript.Translator.State.get

    Map.values(state.modules)
    |> Enum.reject(fn(ast) ->
