The custom.js file contains all the variables for customising the menus. One of those variables is for setting the base path to your js files. You need to set this to match the location of your files i.e. assets/templates/menu
var baseHREF = "assets/templates/menu/"; // base path to .js files for the script (ie: resources/)