added if javascript in repository#index