Fixed document.domain and customConfig