add support for umd
Test framework and jshint adjustments
Testing dynamic size computation
Implementing dynamic size calculation
Making the stub comment more explicit about its meaning.
A 1030 witdh should select 1024 instead of 320.
So electing the biggest available width first.