Completed for loop js document exercise