Updated some of the c++/javascript interfaces