Update myFunctions.js

Change number of loops