added comments to osmap.js

added comments and edited osmap.js