Improved and fixed the $.find function