Extended regions example with some javascript.