Update index and js