js: Add object definition
c++: Add printf for string