JavaScript objects' extensions