new javascript to edit extents
edit extent page working
merged Matts changes with master