Make messloader.js module agnostic