Add SetData method on index.js file