Fix export code for direct script inclusion
Version 1.0.1