Bug fixes and added simple demo.

Fixed bug in Firefox where getting the border value can result in NaN
in some cases.  Fixed bug where heights jump on browser resizing.