Making the extending function of jQuery return consistent
Cleaning up