WIP: add searlised extent to title
escape json serialised string
tidy up
replace click with mouseover