Refactor user/product list js