endow common JavaScript objects with special abilities