Set the resize div styles with JS rather than relying on CSS