adding js index and updated style