Use font.capitalization instead of the custom javascript function used and return...