Reorganize isotope js a bit.