I believe requiring the whole directory could cause some issues. Is there a reason you didn't want the JS files specified explicitly?