added the index and js files, init