renamed getDeactivationReason to handleDeactivation in js
only add deactivation_reason param if it isn't null
only deactivate equipment object if deactivation_reason param exists