Tweak a ternJS pattern