Material upload js