fix how to use function definition

  - `function name() {}`    should be private in a module
    - called  : YES
    - assigned: NO
  - `name = function() {}`
    - called  : YES
    - assigned: YES