Initial commit with full working c++ and js code.