Boost Serialize to Java Script and vice versa