fixed code for checkbox per jQuery 1.9 change