moved product loading to js