title: box to keep proportion when scaling with javascript
body: <p>I have made a script: <a href="http://jsfiddle.net/radar24/XZgh4/" rel="nofollow">http://jsfiddle.net/radar24/XZgh4/</a> which scales the given dimension into the outer div. everything seems fine, until I enter a dimension such as 200 x 99. then the box grows outside.</p>
  
  <p>I really cannot find the cause of this, can anyone help?</p>