events.js - made an ajax call to the event api so the page didn't have to change