Bugfix - stats code

Fixed a Javascript bug in the landing page generator.