JavaScript module for geographic services