updated index and js