Could you please replace the string `'profilebutton'` param value with `$('#profilepicture + input')` and avoid adding the profilebutton id in settings.mustache? AjaxUpload will automatically detect its a jquery object and take the element from there.