Updated error reporting
Corrected reuse of Scope
Refreshed js export