add toString method for JavascriptDimExtractionFn