fix(#10) [ng:areq] Argument 'fn' is not a function, got undefined 

Bug fix for issue #10