added filter for upload attributes
new js function for element exist