Export: Select methods to be exported to the window scope

Fixes #561