Assign rather than declare function in block. Cf. https://github.com/airbnb/javascript#functions