Cannot read property 'documentBaseURL' of undefined