Widget resources should be placed in subdirectories with the same name as the widget.
For example, the widget inputRichText store its JavaScript in the directory
/inputRichText.