javascript for osmap

Added the js code for osmap