general js library for os map