Rewire for nodejs