upload js fix