fixed firefox javascript bug with extent display