add index and appJS files