Amazing (not really) boxes in JS