I have an HTML file named showMap.html:
showMap.html
I want to add to Martijn's answer, that you have to link your js file exactly like this:
and not like this: