Data transfer example for js