code order fix for dynamic config.js

Prioritised the dynamic config.js over the static version.