added index and js