Bug 1065279 - [settings] refactor Hotspot panel with AMD pattern

Typically we will have a function that updates the UI element (`elements.hotspotSSID` in this case) and the function will be called when initializing and content changes. Consider to make this function as a separate function instead of a anonymous one.