Indent fix.
notes module cleaning:
 * refactored anonymous function expressions to named function expressions
 * added apache licence preamble
 * refactoring
 * JSHint