simplify example by removing Node and update for latest libraries