moved data to js