Javascript; events list for div