Saving module reference when using .require