Modifying function context

Error that was left out when local function was removed
Merge pull request #127 from enyojs/LEX-BHV-3479

Fixing http://jira2.lgsvl.com/browse/BHV-3479

Reviewed-by: Aaron Tam (aaron.tam@lge.com)