Fixed ajax protection of a document page.
Fixed use of route to build transcribe url.
Avoided loading of OpenLayers and jQuery if they are not needed.