Declare variable so import works

When declaring a module, it's necessary to declare a variable then
export it, else the import keyword won't work properly when using
modules.
Merge pull request #3110 from jbblanchet/master

Declare variable so import works