Defining and reuse a "classic" JS function

Similar to my approach here: Importing function from another node

Just for completeness. :slightly_smiling_face: