Moved js map and options var outside the initialize function.