Fix spec to work from hosted pages