change documents and medias rights with jquery script