making organize.js neater