JS for dispaying event details added