When I am loading a javascript file ,it is giving error :

"Done! But with errors on page""

"Error: XYArray is undefined "...
goes on for multiple arrays like this ...

how to solve this??