Hooked up editing locations to the UI

Protip: Use get/setFullYear() instead of get/setYear() in Javascript.