max newevents js