JavaScript Prototype add-ons

I know a lot of people disagree with adding onto the prototype for built in JavaScript objects but... I'm not one of them. I find them very useful. In the below examples the code will only be executed if there is not an existing method. Anyway, if you are interested,…