I just looked http://javascript.crockford.com/code.html up - It says global vars should be upper case - but i resembles the way one would write it in C - The reason for using the "constants" would be to catch misspelling - could also be a function eg. `CollectionFS.errorType('invalidFileSize')` This could throw an error if type not found?

hmm, thinking while writing: 
```
function (errorType, fileRecord) {
  if (errorType()) // pr. default this would return true since we are in the event handler 

  if ( errorType('invalidFileSize') ) { /* ... */}
  if ( errorType('this error is not in the api') ) { /* throws an error */}
}

The errorType function could be returned by something like `CollectionFS.constructErrorType('invalidFileSize')` - again checking if in api