light clean up

moved var declaration to top of functions.

Add 'use strict' at the top and params for jsLint.

Ran main.js thru JSLint and no longer getting errors.

commented out unused showMap()

Signed-off-by: mike connor <mike@rocketnumber9.org>