added stuff for addEventListener, JSPaperRef and JSRaphaelRef classes, needs testing