ReferenceError: dhtmlx is not defined

Hi Team,
We are working with dhtmlxGrid v3.6 and we are getting below mentioned script errors like,
“ReferenceError: dhtmlx is not defined”,
“TypeError:dhtmlx.extend is not a function”.

Find the below order of js file reference code that we are using and attached error screen shot for your ref.

Kindly help us to proceed further.

Please, try to use the following order:

… all other official dhtmlxgrid extensions
… all your custom fucntions