function capitalize (str) {
    return str.charAt(0).toUpperCase() + str.slice(1)
  }
Register a custom event.

@param {String} event
@param {Object} options - a Hammer.js recognizer option object.
                          required fields:
                          - type: the base recognizer to use for this event