adding homepage view and js