Has anyone found a way to extend the Math object in JavaScript?

I was wondering whether I could do this without mirroring it into a new object. I'm hoping to extend the Math package somewhat for future development.

I tried something like this:

Math.prototype.myMethod = function()

{

return 'My Method';

}

But Firefox 1.5 tells me 'Math.prototype has no properties.'

Is this package locked out for developers? If so, why? Can any MSIE/Opera/Safari users relate their experiences trying to extend the Math package?

SOLVED

This problem has been solved. Please see comment below ("SOLUTION...") for details on how to implement the solution in your own code.

Many thanks.