javascript onclick for checkbox fixed