'); // LOOP TO BUILD COLUMNS for(var i = 0; i < columnNum; i++) { // KEEP FROM ADDING EMPTY UL'S TO THE DOM if(i < shortcutNum) { // IF shortcutNum / columnNum REMAINDER IS BETWEEN .0 AND .5 AND THIS IS THE FIRST LOOP ITERATION // WE'LL ADD 1 TO THE END RANGE SO THAT THE EXTRA LINK GOES INTO THE FIRST COLUMN if((shortcutNum / columnNum) % 1 > 0.0 && (shortcutNum / columnNum) % 1 < 0.5 && i == 0) { endRange = Math.round(shortcutNum / columnNum) + 1; } else if((shortcutNum / columnNum) % 1 == 0.5 && i >= (columnNum / i)) { endRange = Math.round(shortcutNum / columnNum) - 1; } else { endRange = Math.round(shortcutNum / columnNum) } // ADD THE COLUMN UL $(".site-shortcuts-columns", this).append('