Js refactor

Edited home page view; refactored follow.js