I tried get a width with a calculation in it to determine the width size, however the 15.4% value just keeps appearing on my page and it is not executing in the div statement as the width: 15.4%.
var percent = (154 / 1000) *100;
var percent1 = percent + "%";
$('#bar').append("<div id='barbox_a'></div>" +
"<div class='bar blank'></div>" + "<div class='bar' style='width: ",
percent1, " '>" + "</div>\n");