Make onload="initialize" conditional on map template