Fix application triggering when dispatching action.
Refactor home module to jshint compliant code