NT.js to pure exports
Corrected double initialization
Corrected tests