add index and js