am adaugat functiile javascript