Why is my javascript file not found

Pvdn's icon

I'm creating a M4L device and have a js object in there, supplying a filename in its arguments:

js filename.js

I put filename.js in the same location as the device in which it is used, but Max tells me that filename.js cannot be found. Isn't the location of the device itself included in the searchpath?