Augmenting Types in Javascript