Need to combine these two javascripts
<p>I would like to run both of these scripts..</p>

<pre><code>var myScroll;
function loaded() {
    myScroll = new iScroll('wrapper', { scrollbarClass: 'myScrollbar' });
}

document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

document.addEventListener('DOMContentLoaded', loaded, false);
</code></pre>

<p>I want to add this below in addition to what is above.</p>

<pre><code>var myScroll;   

function loaded() {
myScroll = new iScroll('wrapper', {
    snap: true,
    momentum: false,
    hScrollbar: false,
    onScrollEnd: function () {
        document.querySelector('#indicator &gt; li.active').className = '';
        document.querySelector('#indicator &gt; li:nth-child(' + (this.currPageX+1) + ')').className = 'active';
    }
 });
}

document.addEventListener('DOMContentLoaded', loaded, false);
</code></pre>
