restoring loadEvent function with commented out location hash method