I think as long you do the IDs correctly all you're really going to have to do is use something like:
Code:
var str = new String(insert kink);
document.getElementById("recordID").innerHTML = str.fontcolor("blue");
and just repeating for each kink.
I'll see about making a version for you which will work for all the records but this is just an example.
I don't think there's really a framwork for it as it's pretty simple but I'm sure a google search will uncover one.