Get element by name javascript