Several JS homeworks