Javascript Function.prototype augmentations