my problem is - I got a main.js file, and a functions.js file, where I want some of my functions to be. However, whenever I use require in that functions.js file, I get an error