JavaScript Aplication homeworks