Javascript bin packing algorithm that attempts to pack bins of different sizes as randomly as possible