Created fetchSMS function to clean up smsFetch.js