javascript code refact, added vout in my wishlists