added documentation to offlinemap.js