ew File([blob], filename);
		let parentDir = filepath.split("/");
		parentDir.pop();
		parentDir = parentDir.join("/") + "/";
		handleFile(file, parentDir, function(){
			lastSave = code;
		});
	}
	
	function getDocWidth(){
		return $(document).width();
	}
	
	function checkIsSaved(){
		if (typeof(editor) == "undefined"){
			//Editor not started
			return
		}
		if (lastSave == editor.getValue()){
			parent.setTabIsSaved(tabid, true);
			return true;
		}else{
			parent.setTabIsSaved(tabid, false);
			return f