upload js homeworks arrays loops