When trying to use module.exports and require("./scripts/someScript") i can get variables from other files, but functions doesn't work.