add requirejs exports - fixes #2