Updated JavaScript functions with new Google Map variants.