Fix output of has_edit and has_delete values in javascript.