Adding function to help betterformat variants in HTML client code