Adding some useful (and others not so useful) functions to javascript's objects.