updated data to js