ajax call to get settings from server