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

...sage