This is also in global scope, along with `map` and 'overlay` variables. Could we move these into `$(document).ready()`