Changing Demo6 to JS file