adding functionality to time range selection buttons.
moving server list code to a separate js.