Look at the code...
var css_code = new Array();
css_code[css_code.length + 1] = "<div style='height: "+square_height+"; width: "+square_width+"; "+square_rounded+" border: "+border_width+" "+border_type+" "+border_color+"; position: absolute;'></div>";
This is just a tiny snippet of a huge amount of code, but when I add a new item to the css_code array. An extra comma comes in when I output the array on the screen, why?