The Javascript implementation of binpack