[TIMOB-16161] Fixed issue where the JavaScript AST parsing was being don...

...e outside the hook making it impossible to change the input file being processed.