Bugfix for date span limiting.
Minimize JavaScript only on production.