Cleaned up the loading for the Google API
Added delay in case the API has not loaded fast enough