start of example JS patterns