Sorry, we don't have any example projects in this area yet. I think your best bet might be to include your library using the Includes->External JS option in the Project tab. Then I would initialize and set up your library it in the Actions->Start (also in the project tab).
If you are using Hammer.js, something like this might work out for you as the start action (this assumes you have an element in a scene, with a ID of "box" (given under Properties->General->ID) for any object.
Code:
var hammerBox = new Hammer(controller.getElementById('box'));
hammerBox.onswipe = function (event) {
controller.goToNextScene();
};