public void createDebugWindow() {
		
		String text = "";
		
		if(!this.errors.isEmpty()){
			for(String str:this.errors){
				text += str+"\n\n";
			}
		} 
		
		if(!this.debugMessages.isEmpty()){
			for(String str:this.debugMessages){
				text += str+"\n\n";
			}
		} 
		
		if(text == "") return; //no need to bring up the debug window
		
		String header ="";
		header += "================================================\n";
		header += "A simple tool for viewing scripting errors\nBy Jason Welch";
		header += "\n================================================\n";
		
		JLabel label = new JLabel("ErgoEngine Javascript Error Window");
		label.setFont(new Font("Serif",Font.BOLD, 25));
		label.setForeground(new Color(0.05f,0.05f,0.05f,1.0f));
		label.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
		
		textArea = new JTextArea("",25,50);
		textArea.setFont(new Font("Serif",Font.BOLD, 14));
		textArea.setLineWrap(true);
		textArea.setText(header+text);
		textArea.setBackground(new Color(0.05f,0.05f,0.05f,1.0f));
		textArea.setForeground(Color.gray);
		textArea.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
		textArea.setFocusable(true);
		textArea.setEditable(true);
		
		JScrollPane scrollPane = new JScrollPane(textArea);
		scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
		scrollPane.setWheelScrollingEnabled(true);
	
		errorWindow = new JFrame("Script Debug Window");
		errorWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		errorWindow.getContentPane().add(label,BorderLayout.PAGE_START);
		errorWindow.getContentPane().add(scrollPane,BorderLayout.AFTER_LAST_LINE);
		errorWindow.getContentPane().setBackground(Color.darkGray);
		errorWindow.setSize(800,530);
		errorWindow.setVisible(true);
		errorWindow.setResizable(false);
	}