complete index and js