Set document.domain from ENV['BASE']

Setting document.domain from ENV['BASE'] helps us to fix the crossdomain issues with tinyMCE in different application environments