Manipulate chart cosmetics using JavaScript