       stencilsOpen: true
       propertiesOpen: false
     }
+
+    $scope.fileName = "ExampleFileName"
 
     $scope.selectedStencil = false
 


    # Save the Model
    $scope.saveModel = ->
        $stencils = $('.stencil', $scope.container)
        stencils = $.map($stencils, (el) ->
                $stencil = $(el)

        }
        diagrams.push(diagram)
        console.log('model', model)

        modelStr = JSON.stringify(model, undefined, 4)
        if (typeof(Storage) isnt "undefined")
            # Code for localStorage/sessionStorage.
            localStorage[fileName] = modelStr
        else
            # Sorry! No Web Storage support..
            alert("Sorry! No Web Storage support with this browser...")

        if confirm("Would you also like to download the #{fileName}.sponge file?")
            downloadData("#{fileName}.sponge", modelStr, "application/json")


    jsPlumb.ready ->
      $scope.instance = instance = jsPlumb.getInstance(
