Javascript progressbar control and tiny chart (sparkline)