Patch JS array and remove treasurehunt to prevent system resource over-usage