corrected bug in JS export invocation