111020141240EST: jQuery functions refactoring

Refactoring for some functions listed in the app/scripts/functions.js
file and its required updates, i.e: changes in model and view files