Refactored some variable names.
Modified locals for jade views.