deep extend
update extend with pjs
update events with pjs