Update app.js

Updated the first two steps with functions for arguments instead of variables in sortBaggage.