javascript_simulate_packs