You seem to have commented out the css ‘square box technique’ which means that two of your wrappers are now redundant (wrapper and outerwrap).
Erik’s original code gave you a perfect square if content was short but now you just have content height instead.
Otherwise the code is fine.