if you replace your function with mine it works.
at least in chrome.
here's my proof
; click the "HTML" tab, click a radio and then click "RUN".
try changing the radio, and clicking "RUN" again. works for me in chrome.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4