index and js