Jquery Mergely() Function not defined

Jquery Mergely() Function not defined

Hi ,

I tried using Mergely plugin to find the difference between 2 strings but I am getting the error as jQuery(...).mergely is not a function . Can some one help me how to resolve this ?

Here is the code snippet for the same 

<html>
<script type="text/javascript"








<div id="compare"><div>

<script>
$(document).ready(function () {
jQuery('#compare').mergely({
cmsettings: { readOnly: false, lineNumbers: true },
lhs: function(setValue) {
setValue('the quick red fox\njumped over the hairy dog');
},
rhs: function(setValue) {
setValue('the quick brown fox\njumped over the lazy dog');
}
});
});
</script>

</html>