Text modified in jQuery function - bugfix