making improvements in assign_equipment.js.coffee