Some modifications to JavaScript objects I've used.