exchanged cookie storing to local storage storing because of cookie's limited size.
destroyed nested list if any other bracket or quote is ex/included
fixed bug in PHP where the number of times a bracket appeared would not be taken into account for word count calculations