Added alert for when you click an empty plot. Remove Firefox specific debug message funtion