Fixed todo in style js to get the band name and fix js error when repartition array is undefined.