Convert raw nodes in JS objects