Fix broken loading out-of-sources (firefox)

Fixes #270