A javascript event manager framework