Implement MapView as pure JavaScript