javascript homeworks