Check you have imported the capturer library in the html file before you reference test.js.
i.e.
<script src="CCapture.all.min.js"></script> <script language="javascript" type="text/javascript" src="test.js"></script>
Must be in this order.