move data to js