Preparing callback execution in require
Updated JS