added functionality to draw boxes. also returned hammer.js to support swipe gestures