view and js