MortarJS updates to allow reading data from a function