js to resize map, not really working...