There's ma how-to here: https://developers.google.com/maps/documentation/javascript/adding-a-google-map#maps_add_map-html