new javascript loops homework