We have tried to replicate the issue, but haven't found any difference for Chrome.
In our test, we simply included the js file from a <script> block.
Please let us know if using an absolute path in "createEngine" causes any change.