controller and js for home scatter