Resize only vertically.
Ignore zoom when resizing.
Put JS in extra file.