Added missing event firing when map extent changes, added missing error message div to index.html