Updated conversion script to produce javascript 'friendly' data.