adding additional js and index changes for optimization of menu.