Create JavaScript1.js

included comments with logic steps