Adds crossdomain option to ajax request for image polling.
Precompiles assets.