Split into node and client versions, fixed module reference in client version