Fix for web require

We use web version of require, and it have problem.
This fix for use require only on nodejs part