Yea, you can't set styles like that.
You have to do something like the following:
newCell.style.fontWeight = "bold";
Here's the reference I used:
As far as doing what you're trying to do a better way... can't help you there. I just do whatever works most of the time! Perhaps someone like liorean will come along and lend you some advice on that..
Hope that helps,