add njs call for receiver's Connect method
made the setReciever an njs function
and fix scope