add index and js file