Add wpfcheckbox() javascript function