Update maps_lib.js

Updated with code