				},300);
						return
					}

					if (typeof fileContent == "object"){
						//Loading a json file
						fileContent = JSON.stringify(fileContent);
					}
					$("#editor").text(fileContent);

					//Start the editor if not startoed
					if (editor == undefined){
						StartEditor();
					}
				});
		}else{
			alert("Invalid use of editor!")
		}
	}
	

	document.addEventListener("mousedown", function(event) {

	}, true);

	function StartEditor(){
		//Init editor
		editor = ace.edit("editor");
		editor.se