add event to envjs