mod index and added main js file