initialize global BALANCE object in <head>