Do you mean that i MUST define a custom map or do you mean that i AM defining a custom map.
What is OSM map?
The funktion instead of function is not anything I have rendered in the code.
However i am using danish language and funktion is the danish way of spelling function.
When you say I need var, do you mean that I have to make changes in the code?
Function definition in JS is "function"
Here a little tutorial for custom map types
I think you can unpublish your map type and remove it from custom map types from map definition. And for Open street map - just enable it.