https://stackoverflow.com/questions/1248302/how-to-get-the-size-of-a-javascript-object/6351386#6351386