This is a quick tip because I couldn’t find it in the user guide. If you need to load a javascript file from your module mcp file you can do it like this:
$this->EE->cp->load_package_js('jsfile');Then place your js file in “third_party/module_name/javascript/jsfile.js”.