Simplify JS exporting of declarations