Fixed module format to match an actual module system. TypeScript was emi...

...tting it as it is in the file, but not suitable for integration with Node.