Refactor google maps initialization into helper function.
Add comments. Clean up code.