Created transport abstraction on js client