some refactorings to homepage.js
Merge pull request #20 from asafdav2/routes_refactoring

some refactorings to homepage.js