Methods to make handling JavaScript objects/maps easier