frork proph2o in javascript