1. added logging framework log4js.
2. refactored footprint module footprint_module.js to log using log4js.