do not throw in toDart/toJs
use JsFunction for constructors
Merge pull request #185 from a14n/use-jsfunction-for-constructors

use JsFunction for constructors
Merge pull request #184 from a14n/unchecked-transfert

do not throw in toDart/toJs
Export top-level functions.