Save data in JS side, use data array