Updated to make resizing work on Firefox, now it doesn't work on Chrome. Thanks, web standards.