Javascript library for weighting elements similar to Android's layout_weight