small fix in api-forms.js - for checkbox