@Kondou-ger OC.Router is deprecated so it should just be 
`var url = OC.generateUrl('/avatar/{user}/{size}', {user: OC.currentUser, size: 1})+'?requesttoken='+oc_requesttoken;`