allow deferred js package calls (fixes #45)