Minor refactoring showing map on webpage