Converts admesh output to a javascript object