Define separate onmouseout so it doesn't reuse onmouseup