function loadPresets() {
  // get presets path
  let presetsPath = getPresetsDir()

  // create file enumerator for presetsPath
  let url = NSURL.fileURLWithPath(presetsPath)
  let enumerator = NSFileManager.defaultManager().enumeratorAtURL_includingPropertiesForKeys_options_errorHandler(
    url,
    [NSURLIsDirectoryKey, NSURLNameKey, NSURLPathKey],
    NSDirectoryEnumerationSkipsHiddenFiles,
    null
  )

  let presets = []
  let fileUrl = enumerator.nextObject()
  while (fileUrl) {
    // make sure that file is JSON
    if (fileUrl.pathExtension().isEqualToString('json')) {
      // make sure it's a file
      let isDir = MOPointer.alloc().init()
      fileUrl.getResourceValue_forKey_error(isDir, NSURLIsDirectoryKey, null)
      if (!Number(isDir.value())) {
        // get relative path for preset
        let presetPath = fileUrl.path()
        let presetDisplayPath = presetPath.stringByReplacingOccurrencesOfString_withString(
          presetsPath + '/',
          ''
        )

        // create preset structure
        let preset = {
          name: String(presetDisplayPath.stringByDeletingPathExtension()),
          path: String(fileUrl.path())
        }

        // add item
        presets.push(preset)
      }
    }

    fileUrl = enumerator.nextObject()
  }

  return presets
}
Loads all presets inside the presets dir.

@returns {Array}