Use application_data.js instead of a setting + factorize loadJSON()