extending object breaks jQuery :(