added js function for add name, lastname and phone