lr.require not returning exported functions

I'm scripting with javascript and trying to make some utility js files that I can load with lr.require.

I've tried various ways, but lr.require seems to always return an empty object.

I've tried  this.

exports.test1 = function(msg) { lr.logMessage(msg); };

and this

exports = { test1: function(msg) { lr.logMessage(msg); } };

The first give an error saying exports not defined and the second just doesn't work.

Can anyone help with this?

I'm using version 12.60 of VUGEN.