simulated annealing: added jsoncpp, make it work for nodejs