JavaScript Object event library