Attempt to understand require() and define()