add script which sets map properties

In this example, I only used in-line javascript. But you can make it external of course.

Now that we are ready to load the map, what we need is to make another script that contains function with ma properties, and then call this function to initialize and load our map