organization and formatting

javascript files organization, index.html cleaning and formatting