added special check for default falsy parameters for js functions