fix bug in case stream values are functions
build js