Update HomeController.js

use right variable