converted to requirejs for script loading
Saafe config