Fixing js-loaded dependencies