jquery works properly now: Text type is handled correctly