cleanup the client side daigou.js, organize the code by tab functionalities