Proper REQUIREJS adaptation